<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:c="http://java.sun.com/jstl/core"
		>

	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<f:loadBundle basename="bundle.department" var="departmentBundle"/>
		<f:loadBundle basename="bundle.common" var="commonBundle"/>
		<ui:param name="title" value="Plan details"/>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">

				<ui:define name="content">
					<f:loadBundle basename="bundle.plan" var="plansBundle"/>
					<ui:decorate template="/facelets/template/planPanelTemplate.xhtml">
					</ui:decorate>


					<ui:decorate template="/facelets/template/planEditTemplate.xhtml">
						<ui:param name="idPrefix" value="contentPlanEdit"/>
						<ui:param name="actionBean" value="#{contentPlanBean}"/>
						<ui:define name="editPanelContext">
							<h:panelGrid columns="2">
								<h:panelGrid columns="2">
									<h:outputText value="#{planBundle.subject}"/>
									<itdep:entitySelectMenu value="#{contentPlanBean.record.subject}"
															entityType="subject"
															format="{i18n.fullName}"
															required="true" styleClass="sizeCopmonent"/>
									<h:outputText value="#{departmentBundle.academicDepartment}"/>
									<itdep:entitySelectMenu value="#{contentPlanBean.record.department}"
															entityType="academic-department" format="{i18n.fullName}"
															required="true" styleClass="sizeCopmonent"/>
									<h:outputText value="#{planBundle.section}"/>
									<itdep:entitySelectMenu value="#{contentPlanBean.record.section}"
															entityType="section" format="{i18n.description}"
															required="true" styleClass="sizeCopmonent"/>
									<h:outputText value="#{departmentBundle.specialization}"/>
									<itdep:entitySelectMenu value="#{contentPlanBean.record.specialization}"
															entityType="specialization" format="{i18n.fullName}"
															required="false" styleClass="sizeCopmonent"/>

								</h:panelGrid>
								<h:panelGrid columns="2">

									<t:selectManyCheckbox id="smc"
														  value="#{contentPlanBean.semesters}" border="1"
														  disabled="#{contentPlanBean.edit}"
														  title="demo"
														  layout="pageDirection" layoutWidth="2">

										<f:selectItem id="si1" itemLabel="I" itemValue="1"/>
										<f:selectItem id="si2" itemLabel="II" itemValue="2"/>
										<f:selectItem id="si3" itemLabel="III" itemValue="3"/>
										<f:selectItem id="si4" itemLabel="IV" itemValue="4"/>
										<f:selectItem id="si5" itemLabel="V" itemValue="5"/>
										<f:selectItem id="si6" itemLabel="VI" itemValue="6"/>
										<f:selectItem id="si7" itemLabel="VII" itemValue="7"/>
										<f:selectItem id="si8" itemLabel="VIII" itemValue="8"/>
										<f:selectItem id="si9" itemLabel="IX" itemValue="9"/>
										<f:selectItem id="si10" itemLabel="X" itemValue="10"/>
										<f:selectItem id="si11" itemLabel="XI" itemValue="11"/>
										<f:selectItem id="si12" itemLabel="XII" itemValue="12"/>

									</t:selectManyCheckbox>
								</h:panelGrid>
							</h:panelGrid>
						</ui:define>
					</ui:decorate>
				</ui:define>
			</ui:decorate>
		</ui:define>
	</ui:decorate>

</f:view>